package io.gitee.xyuesheng.day03;

import org.junit.Test;

public class HomeworkTestBoth {
    @Test
    public void test() {
//        HomeworkTeacher teacher=new HomeworkTeacher("黄超杰",34," ");
//        System.out.print("年龄为"+teacher.getAge()+"的"+teacher.getName()
//        +"老师");
//        teacher.eat();
//        System.out.print("年龄为"+teacher.getAge()+"的"+teacher.getName()
//                +"老师");
//        teacher.speak();
//
//        HomeworkStudent student=new HomeworkStudent("xx",16," ");
//        System.out.print("年龄为"+student.getAge()+"的"+student.getName()
//                +"同学");
//        student.eat();
//        System.out.print("年龄为"+student.getAge()+"的"+student.getName()
//                +"同学");
//        student.study();


        HomeworkTeacher teacher = new HomeworkTeacher();
        teacher.setAge(34);
        teacher.setName("黄超杰");
        teacher.setContent("");
        System.out.print("年龄为" + teacher.getAge() + "的" + teacher.getName()
                + "老师");
        teacher.eat();
        System.out.print("年龄为" + teacher.getAge() + "的" + teacher.getName()
                + "老师");
        teacher.speak();

        HomeworkStudent student = new HomeworkStudent();
        student.setAge(16);
        student.setName("xx");
        student.setContent("");
        System.out.print("年龄为" + student.getAge() + "的" + student.getName()
                + "同学");
        student.eat();
        System.out.print("年龄为" + student.getAge() + "的" + student.getName()
                + "同学");
        student.study();


    }

}
